function getMenu(tree) {

	Ext.Ajax.request({
				url : 'orgChartTree!orgChartTree.action',
				method : "post",
				success : function(response, options) {
					var responseTextVale = Ext.util.JSON
							.decode(response.responseText);
					tree.getRootNode().appendChild(Ext.util.JSON
							.decode(responseTextVale));
				}
			});

}

Ext.lib.Ajax.defaultPostHeader += '; charset=utf-8';
Ext.QuickTips.init();

var root = new Ext.tree.AsyncTreeNode({
			expanded : true
		});

var tree = new Ext.tree.TreePanel({
			loader : new Ext.tree.TreeLoader(),
			id : 'orgTree',

			rootVisible : false,
			region : 'west',
			split : true,
			border : true,
			collapsible : false,
			width : 160,
			minSize : 80,
			maxSize : 200,
			animate : true,
			autoScroll : true,
			enableDD : true,
			containerScroll : true

		});

getMenu(tree);

tree.setRootNode(root);

tree.on("click", function(node) {
			flow_orgid.setValue(node.id);
		});
